<%-- 
    Document   : login
    Created on : 18/07/2011, 1:25:21 PM
    Author     : Tom McNair - S41758984
--%>

  <style>
    .error { color: red; }
    
    #login {         
        padding-top:20px;
        font-family: Verdana,Arial;
    }   
    #button{
       padding-left: 305px;        
    }
  </style>  

<%@ include file="header.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

    <div id="content-container1">
        <div id="content">
            <!-- Content goes here -->
            
                <form:form method="post" commandName="login">
                  <table id="login" width="95%"  border="0" cellspacing="0" cellpadding="5">
                    <tr>
                      <td align="right" width="20%">Username:</td>
                        <td width="20%">
                          <form:input path="username"/>
                        </td>
                        <td width="60%">
                          <form:errors path="username" cssClass="error"/>
                        </td>
                    </tr>
                    <tr>
                      <td align="right" width="20%">Password:</td>
                        <td width="20%">
                          <form:password path="password"/>
                        </td>
                        <td width="60%">
                          <form:errors path="password" cssClass="error"/>
                        </td>
                    </tr>
                  </table>
                  <br>
                  <div id="button">
                    <input type="submit" align="center" value="Login">
                  </div>
                </form:form>
            
        </div>
    </div>		
		
<%@ include file="footer.jsp" %>